package com.kaili.basic.pojo.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Desc: 设备VO
 * @author: zhouyijian
 * @Time: 2019/7/26 14:51
 * @Copyright: © 2018 杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Data
public class DeviceVO implements Serializable {

    private static final long serialVersionUID = 8241941834883734170L;

    @ApiModelProperty("设备表id")
    private Integer id;

    @Excel(name = "IMEI", orderNum = "1")
    @ApiModelProperty("设备imei")
    private String imei;

    @Excel(name = "型号", orderNum = "3")
    @ApiModelProperty("型号")
    private String model;

    @Excel(name = "SN", orderNum = "2")
    @ApiModelProperty("设备sn")
    private String sn;

    @Excel(name = "MAC", orderNum = "4")
    @ApiModelProperty("设备mac")
    private String mac;

    @ApiModelProperty("机构ID")
    private Integer orgId;

    @Excel(name = "平台", orderNum = "8")
    @ApiModelProperty("平台:1安卓2ios3其他")
    private Integer platformId;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("分组ID")
    private Integer groupId;

    @Excel(name = "系统版本", orderNum = "9")
    @ApiModelProperty("系统版本")
    private String version;

    @Excel(name = "归属", orderNum = "10")
    @ApiModelProperty("设备归属Id(单位2个人3其他)")
    private Integer belongId;

    @Excel(name = "类型", orderNum = "11")
    @ApiModelProperty("设备类型id(1手机 2PDA 3PAD 4其他)")
    private Integer typeId;

    @ApiModelProperty("是否绑定机构:0解除绑定1绑定")
    private String isOrganization;

    @ApiModelProperty("是否绑定用户:0解除绑定1绑定 ")
    private String isUser;

    @Excel(name = "启用时间", orderNum = "12")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty("启用时间")
    private Date actionTime;

    @Excel(name = "操作", orderNum = "15")
    @ApiModelProperty("设备是否启用:0禁用1启用")
    private String isAction;

    @ApiModelProperty("数据状态:0删除1正常")
    private String rdStatus;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("用户名")
    private String userName;

    @Excel(name = "分组", orderNum = "7")
    @ApiModelProperty("分组名")
    private String groupName;

    @Excel(name = "机构", orderNum = "5")
    @ApiModelProperty("机构名")
    private String orgName;

    @ApiModelProperty("归属名")
    private String belongName;

    @ApiModelProperty("平台名")
    private String plateformName;

    @Excel(name = "创建人", orderNum = "13")
    @ApiModelProperty("创建人")
    private String createName;

    @ApiModelProperty("修改人")
    private String modifyName;

    @ApiModelProperty("设备类型名")
    private String typeName;

    @ApiModelProperty("创建人")
    private Integer createBy;

    @Excel(name = "登记时间", orderNum = "14")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty("创建时间/设备登记时间")
    private Date createTime;

    @ApiModelProperty("修改人")
    private Integer modifyBy;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

    @Excel(name = "设备名称", orderNum = "6")
    @ApiModelProperty("设备名称")
    private String deviceName;

    @ApiModelProperty("设备型号")  //用于返回前台设备型号
    private String label;
}
